package sg.edu.nus.dbd.formbean;

import java.text.SimpleDateFormat;
import java.sql.Date;

public class DetailParamData {

	Date startDate;
	Date endDate;
	double aggregatedValue;

	public DetailParamData(Date startDate, Date endDate, double aggregatedValue) {
		super();
		this.aggregatedValue = aggregatedValue;
		this.endDate = endDate;
		this.startDate = startDate;
	}

	public String getTimeBlockName() {
		SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");

		return sdf.format(startDate) + " to " + sdf.format(endDate);
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public double getAggregatedValue() {
		return aggregatedValue;
	}

	public void setAggregatedValue(double aggregatedValue) {
		this.aggregatedValue = aggregatedValue;
	}

}
